/**
 * Created with IntelliJ IDEA.
 * Description:
 * https://gitee.com/li--jiaqiang/java-test.git
 * git pull
 * git pull origin master
 * git pull origin master --allow-unrelated-histories
 * User: 86187
 * Date: 2022-04-27
 * Time: 21:50
 */

//Scanner scan = new Scanner(System.in);

import java.util.Scanner;

public class TestDemo {

    public static int myAdd(int x,int y) {
        return x + y;
    }

    public static double myAdd(double a,double b,double c) {
        return a+b+c;
    }

    public static void main(String[] args) {
        int x = 10;
        int y = 20;
        System.out.println("x+y="+myAdd(x, y));

        double a = 2.5;
        double b = 3.5;
        double c = 2.1;
        System.out.println("a+b+c="+myAdd(a, b, c));
    }
}
